import request from '@/utils/request'

//处置流程操作
export function processDiagram(data, type) {
    return request({
        url: '/business/processDiagram',
        method: type,
        data: data
    })
}
//处置流程列表
export function processDiagramList(data) {
    return request({
        url: '/business/processDiagram/list',
        method: 'get',
        params: data
    })
}
//告警列表
export function alarmEventTypeList(data) {
    return request({
        url: '/business/alarmEventType/list',
        method: 'get',
        params: data
    })
}

//信息模板操作
export function messageTemplate(data, type) {
    return request({
        url: '/business/messageTemplate',
        method: type,
        data: data
    })
}
//信息模板列表
export function messageTemplateList(data) {
    return request({
        url: '/business/messageTemplate/list',
        method: 'get',
        params: data
    })
}

//报警通知策略操作
export function alarmNoticeStrategy(data, type) {
    return request({
        url: '/business/alarmNoticeStrategy',
        method: type,
        data: data
    })
}
//报警通知策略列表
export function alarmNoticeStrategyList(data) {
    return request({
        url: '/business/alarmNoticeStrategy/list',
        method: 'get',
        params: data
    })
}
//标签管理列表
export function labelList(data) {
    return request({
        url: '/business/label/list',
        method: 'get',
        params: data
    })
}
//推送规则列表
export function alarmNoticeRuleList(data) {
    return request({
        url: '/business/alarmNoticeRule/list',
        method: 'get',
        params: data
    })
}
//设备列表
export function devicTypeList(data) {
    return request({
        url: '/business/deviceType/list',
        method: 'get',
        params: data
    })
}